

def check(li):
    if 'b' in li and 'd' in li and 'y' in li:
        global hu
        hu += 1
        print(li)
        print(':%d' % hu)
        return True
    else:
        return False
all = ['b', 'd', 'y', 'q', 'e', 'g', 'r', 'p']
hu = sum = 0
list = []


def test():
    global sum
    for i1 in all:
        for i2 in all:
            for i3 in all:
                for i4 in all:
                    for i5 in all:
                        l = [i1, i2, i3, i4, i5]
                        sum += 1
                        check(l)

    print('%d/%d' % (hu, sum))


if __name__ == "__main__":
    test()
